package com.winit.deploy.service;

import com.alibaba.fastjson.JSONObject;
import com.winit.deploy.manager.DeployAuthorizeManager;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

@Component
public class DeployAuthorizeService {

    private static final Logger logger = LoggerFactory.getLogger(DeployAuthorizeService.class);

    @Resource
    private DeployAuthorizeManager authorizeManager;

    public JSONObject getAuthorize(){
        return authorizeManager.getAuthorize();
    }
    public boolean getStopDeploytip(String env){
        return authorizeManager.getStopDeploytip(env);
    }

    public void updateStopDeployTip(String env,boolean flag){
        updateStopDeployTip(env,flag);
    }
}
